from django.db import models

# Create your models here.

#用户模型类
class UserModel(models.Model):
    username=models.CharField('用户名',max_length=20)
    password=models.CharField('密码',max_length=256)
    phone=models.CharField('手机号',max_length=11)
    email=models.EmailField(verbose_name='邮箱',null=True,blank=True)
    class Meta:
        verbose_name_plural='用户模型类'
        db_table='usermodel'
    def __str__(self):
        return self.username